/**
 * 文件描述如下：
 * 1. 一级路由设置
 * 2. 有二级路由的在单独的配置文件
 * 3.
 * 4.
 */
export default [
  { path: '/', redirect: '/perceivedEffect' },

  {
    path: '/authorization',
    name: 'authorization', // 授权管理
    component: () => import('../views/AuthorizationManage/AuthorizationManage.vue'),
  },
  {
    path: '/perceivedEffect',
    name: 'perceivedEffect', // 感知效果
    meta: { keepAlive: true }, // 这个组件会被缓存
    component: () => import('../views/PerceivedEffect/PerceivedEffect.vue'),
  },
  {
    path: '/eventDetection',
    name: 'eventDetection', // 事件检测
    component: () => import('../views/EventDetection/EventDetection.vue'),
  },

  {
    path: '/faultReporting',
    name: 'faultReporting', // 故障上报
    component: () => import('../views/FaultReporting/FaultReporting.vue'),
  },
  {
    path: '/localUpgrade',
    name: 'localUpgrade', // 本地升级
    component: () => import('../views/LocalUpgrade/LocalUpgrade.vue'),
  },
  {
    path: '/fileTransfer',
    name: 'fileTransfer', // 文件传输
    component: () => import('../views/FileTransfer/FileTransfer.vue'),
  },
]
